/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package csse3004.GD.PM;

import csse3004.GD.DA.PollMasterDA;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.RedirectView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.servlet.mvc.SimpleFormController;

/**
 *
 * @author s4201567 Tony Yu
 */
public class ParticipantListDetailsController extends SimpleFormController {

    //private PollMasterService pms = new PollMasterDA();

    public ModelAndView onSubmit(Object command) throws ServletException {

        //ParticipantListDetails pld = new ParticipantListDetails();
        //pms.getParticipantDetails(pld.getPartID());

        //TO DO @Tony dynamically load data to specified field

        return new ModelAndView(new RedirectView(getSuccessView()));
    }
}